package com.fish.design.create.singleton.lazy;

/**
 * @PACKAGE_NAME: com.fish.design.create.singleton.lazy
 * @Author: wangyingbin
 * @Date: 2021/11/8 19:16
 * @Description:
 */

public class LazySingletonTest {
    public static void main(String[] args) {
        new Thread(() -> {
            System.out.println(LazySingleton.getInstance());
        }, "线程1").start();
        new Thread(() -> {
            System.out.println(LazySingleton.getInstance());
        }, "线程2").start();
    }
}
